﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using ConsoleApplication2;
using NUnit.Framework;

namespace ConsoleApplication2.Test
{

    class Program
    {
        public static void Main(string[] args)
        {
        }
    }
    [TestFixture]
    public class Test1Test
    {
        Test1 abc = null;
        [SetUp]
        public void SetUp()
        {
            abc = new Test1();
        }

        [Test]
        public void isValidFileName_Containdoc_ReturnTrue()
        {
            bool result = abc.isValidFileName("word.doc");
            Assert.IsTrue(result, "The test failed");
        }

		
        [Test]
        [ExpectedException(typeof(ArgumentException), ExpectedMessage = "Filename should not be empty.")]
        public void isValidFileName_isEmpty_throwException()
        {
            abc.isValidFileName("abc");
        }

        [TearDown]
        public void TearDown()
        {
            abc = null;
        }
    }

}
